<include file="./Application/Home/View/Header/header.html" />
<section>
    <div class="am-container">
        <table class="am-table am-table-bd">
            <thead>
            <tr>
                <th>学号</th>
                <th>学生姓名</th>
                <th>授权</th>
            </tr>
            </thead>
            <tbody>
            <volist name="stu_list" id="stu">
                <tr>
                    <th>{$stu.userid}</th>
                    <th>{$stu.username}</th>
                    <if condition="$stu.authority != 1 "> <th><a type="button" class="am-btn am-btn-danger" href="__URL__/assignStu/userid/{$stu.userid}">授权</a></th>
                        <else />  <th><a type="button" class="am-btn am-btn-secondary" href="__URL__/unAssignStu/userid/{$stu.userid}">取消授权</a></th>
                    </if>
                </tr>
            </volist>
            </tbody>
        </table>

    </div>
    <div class="am-container">
        <div class="col-md-3">&nbsp;</div>
        <div class="am-col-md-6">
            <ul class="am-pagination">

                <if condition="$offset == 0 ">
                    <li class="am-disabled"><a href="#">&laquo;</a></li>
                    当前第{$offset}页,共有{$stu_nums}条数据,总页数
                    {$page_num}
                    <li><a href="__URL__/listStu/offset/{$offset+1}/limitNum/10">&raquo;</a></li>
                 <elseif condition="$offset == $page_num-1"/>
                    <li ><a href="__URL__/listStu/offset/{$offset-1}/limitNum/10">&laquo;</a></li>
                    当前第{$offset}页,共有{$stu_nums}条数据,总页数
                    {$page_num}
                    <li class="am-disabled"><a href="#" >&raquo;</a></li>
                 <else />
                    <li ><a href="__URL__/listStu/offset/{$offset-1}/limitNum/10">&laquo;</a></li>
                    当前第{$offset}页,共有{$stu_nums}条数据,总页数
                    {$page_num}
                    <li><a href="__URL__/listStu/offset/{$offset+1}/limitNum/10">&raquo;</a></li>
                </if>
            </ul>
        </div>
        <div class="col-md-3"></div>


    </div>


</section>

<include file="./Application/Home/View/Footer/footer.html" />

